var gui = require('nw.gui');
// Extend application menu for Mac OS
if (process.platform == "darwin") {
    var menu = new gui.Menu({
        type: "menubar"
    });
    menu.createMacBuiltin && menu.createMacBuiltin(window.document.title);
    gui.Window.get().menu = menu;
}
var win = gui.Window.get();
win.showDevTools();